#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
    Module Documentation
    here
"""

# Created by  : Zhang Chengdong
# Create Date : 2024/11/26 10:45
# Version = v0.1.0

__author__ = "Zhang Chengdong"
__copyright__ = "Copyright 2024. Large scale model"
__credits__ = ['Zhang Chengdong']

__liscence__ = "MIT"
__version__ = "1.0.1"
__maintainer__ = "Zhang Chengdong"
__status__ = "Production"

from celery import Celery

# 创建celery实例对象
app = Celery('redis_django_celery')

# 通过app加载配置
app.config_from_object('celery_tasks.config')

# 自动搜索并加载任务
app.autodiscover_tasks([
    'redis_django_celery.base_info'
])

# 切换目录到项目的根目录下启动celery
# celery -A mycelerymain worker --loglevel=info
